<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //展开语法
        let arr = ["hdcms", "houdunren"];
        let hd = ["js", "css"];
        // for (const value of hd) {
        //     arr.push(value);
        // }
        function sum(...args) {
            // console.log(args);
            return args.reduce((s, v) => {
                return (s += v);
            }, 0);
        }
        console.log(sum(9, 1, 4, 5, 6));
        // arr = [...arr, ...hd];


        console.table(arr);
    </script>
</body>

</html>